home *** CD-ROM | disk | FTP | other *** search
/ AI Game Programming Wisdom / AIGameProgrammingWisdom.iso / SourceCode / 03 Pathfinding with Astar / 02 Higgins / Listing5.cpp < prev   
Encoding:
C/C++ Source or Header  |  2001-12-09  |  737 b   |  20 lines

  1. /* Copyright (C) Dan Higgins, 2001. 
  2.  * All rights reserved worldwide.
  3.  *
  4.  * This software is provided "as is" without express or implied
  5.  * warranties. You may freely copy and compile this source into
  6.  * applications you distribute provided that the copyright text
  7.  * below is included in the resulting source code, for example:
  8.  * "Portions Copyright (C) Dan Higgins, 2001"
  9.  */
  10. // This is used to modify the pathfinder,
  11. // making it slightly slower, but saves memory.
  12. class PathModifierSubmarine : public PathModifierGoalBase
  13. {
  14. public:
  15.     virtual long GetTileCost( U2Dpoint<long>& inFrom,
  16.                               U2Dpoint<long>& inTo);
  17.  
  18.     virtual bool TileIsOpen( Tile* inTile, U2Dpoint<long>& inPoint);
  19. };
  20.